package com.github.ecbp.user.service.dto;

import com.github.ecbp.common.req.BaseIdDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.List;

@ApiModel
@Data
public class RoleDto extends BaseIdDTO {

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true)
    @NotEmpty
    private String name;

    @ApiModelProperty(value = "资源ID集合")
    private List<Long> permissionIds;

    @ApiModelProperty(value = "菜单ID集合")
    private List<Long> menuIds;

    /*
    用户类型 总部HEADQUARTER 油站OIL_STATION 用油客户OIL_CUSTOMER
     */
    @ApiModelProperty(value = "用户类型", example = "HEADQUARTER", required = true)
    @NotEmpty
    private String customerType;

    /**
     * 是否当前类型用户默认角色
     */
    @ApiModelProperty(value = "是否当前类型用户默认角色")
    private Boolean ifDefault;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String description;

    /**
     * 启用状态：0->禁用；1->启用
     */
    private Integer status;

    private Integer sort;
}
